import {searchDetail} from "../../api/sellOrderDetail"


let sellOrderDetail = {
    data() {
        return {
            sellCode:'',
            sellOrderDetail:{},
            goodsList:[]
        };
    },
    methods:{
        async orderDetail(){
            let sellCode = this.sellCode;
            let response = await searchDetail(sellCode);
            this.sellOrderDetail = response;
            this.goodsList = response.sellOrderGoodsList;
        },
        pageBack(){
            this.$router.push("/sellOrderManage");
        }
    },
    created(){
        this.sellCode = this.$route.params.sellCode;
        console.log(this.$route.params);
        this.orderDetail();
    }
};

export default sellOrderDetail;